<extend name="Public/base"/>

<block name="body">
  <form method="post" class="form-horizontal J_ajaxForm" action="{:U("")}">
       <div class="tab-content">
       
        <div class="form-group">
            <label class="col-sm-2 control-label "><span class="red">*</span> 名称 </label>
            <div class="col-sm-10">
              <input type="text"  name="title" value="{$data.title}" class="col-xs-8 col-sm-7 " />
               </div>
          </div>
          
              <div class="space-4"></div>
              
                 <div class="form-group">
            <label class="col-sm-2 control-label "><span class="red">*</span> 调用标签 </label>
            <div class="col-sm-10">
              <input type="text"  name="pos" value="{$data.pos}" class="col-xs-8 col-sm-7 " />
              <span class="info">确保唯一性</span>
               </div>
               
          </div>
          
              <div class="space-4"></div>
               <div class="form-group">
            <label class="col-sm-2 control-label "><span class="red">*</span> 内容 </label>
            <div class="col-sm-10">
              <textarea name="content" rows="10" class="input-xxlarge" >{$data.content}</textarea>
               </div>
          </div>
          
              <div class="space-4"></div>
              
         
      </div>
  
       <if condition="$edit">
     <input type="hidden"  name="id"   value="{$data.id}"  /></if>
      <div class="form-actions">
      <button class="btn btn-info ajax-post"   target-form="J_ajaxForm" type="submit">  <if condition="$edit">更新<else/>添加</if></button>
      	<a class="btn btn-return" href="__URL__" >返 回</a>
      </div>
      
    </form>
</block>
